\hypertarget{group__Thread}{
\section{Thread}
\label{group__Thread}\index{Thread@{Thread}}
}
\subsection*{组合类型}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structrt__thread}{rt\_\-thread}
\end{DoxyCompactItemize}
\subsection*{宏定义}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__Thread_gae743a0f57a34ce46c0687ff787972ded}{RT\_\-THREAD\_\-INIT}~0x00
\item 
\#define \hyperlink{group__Thread_ga3d2482a36a666c7e796f0fee67c0d3f3}{RT\_\-THREAD\_\-READY}~0x01
\item 
\#define \hyperlink{group__Thread_gad67bab390563b8b80a2ee7a847660f85}{RT\_\-THREAD\_\-SUSPEND}~0x02
\item 
\#define \hyperlink{group__Thread_ga76fc51507d2201f644b94b916560778b}{RT\_\-THREAD\_\-RUNNING}~0x03
\item 
\#define \hyperlink{group__Thread_ga85729ec69f5f51133e5d1e218f1bd504}{RT\_\-THREAD\_\-BLOCK}~RT\_\-THREAD\_\-SUSPEND
\item 
\#define \hyperlink{group__Thread_ga1c39773ce3aefe35d15e68f34ddedc9a}{RT\_\-THREAD\_\-CLOSE}~0x04
\item 
\#define \hyperlink{group__Thread_gae94f55354bd0e145bd855bd38db5c442}{RT\_\-THREAD\_\-CTRL\_\-STARTUP}~0x00
\item 
\#define \hyperlink{group__Thread_gad875eaaa2400aef8f6078f5d1f8297b3}{RT\_\-THREAD\_\-CTRL\_\-CLOSE}~0x01
\item 
\#define \hyperlink{group__Thread_gad59e5c8ec96f8b3231947b0c665e5fba}{RT\_\-THREAD\_\-CTRL\_\-CHANGE\_\-PRIORITY}~0x02
\item 
\#define \hyperlink{group__Thread_ga45ba1445796c920c2ae943b419e19d4b}{RT\_\-THREAD\_\-CTRL\_\-INFO}~0x03
\end{DoxyCompactItemize}
\subsection*{类型定义}
\begin{DoxyCompactItemize}
\item 
\hypertarget{group__Thread_gad617ac6bd69bf546743549542a86fbf9}{
typedef struct \hyperlink{structrt__thread}{rt\_\-thread} $\ast$ {\bfseries rt\_\-thread\_\-t}}
\label{group__Thread_gad617ac6bd69bf546743549542a86fbf9}

\end{DoxyCompactItemize}
\subsection*{函数}
\begin{DoxyCompactItemize}
\item 
\hypertarget{group__Thread_gacd985aa60939b95e510f144610f001b9}{
\hyperlink{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{rt\_\-err\_\-t} {\bfseries rt\_\-thread\_\-init} (struct \hyperlink{structrt__thread}{rt\_\-thread} $\ast$thread, const char $\ast$name, void($\ast$entry)(void $\ast$parameter), void $\ast$parameter, void $\ast$stack\_\-start, \hyperlink{group__BasicDef_ga909edcac80e5e3f93f63fcebc95922c7}{rt\_\-uint32\_\-t} stack\_\-size, \hyperlink{group__BasicDef_ga585e2ad0fbab0f83817cb61373465df6}{rt\_\-uint8\_\-t} priority, \hyperlink{group__BasicDef_ga909edcac80e5e3f93f63fcebc95922c7}{rt\_\-uint32\_\-t} tick)}
\label{group__Thread_gacd985aa60939b95e510f144610f001b9}

\item 
\hypertarget{group__Thread_ga514825b80304477ecf377d721da409b0}{
\hyperlink{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{rt\_\-err\_\-t} {\bfseries rt\_\-thread\_\-detach} (\hyperlink{structrt__thread}{rt\_\-thread\_\-t} thread)}
\label{group__Thread_ga514825b80304477ecf377d721da409b0}

\item 
\hypertarget{group__Thread_gacb215b161f17c26b5e19c28cd0119e7b}{
\hyperlink{structrt__thread}{rt\_\-thread\_\-t} {\bfseries rt\_\-thread\_\-create} (const char $\ast$name, void($\ast$entry)(void $\ast$parameter), void $\ast$parameter, \hyperlink{group__BasicDef_ga909edcac80e5e3f93f63fcebc95922c7}{rt\_\-uint32\_\-t} stack\_\-size, \hyperlink{group__BasicDef_ga585e2ad0fbab0f83817cb61373465df6}{rt\_\-uint8\_\-t} priority, \hyperlink{group__BasicDef_ga909edcac80e5e3f93f63fcebc95922c7}{rt\_\-uint32\_\-t} tick)}
\label{group__Thread_gacb215b161f17c26b5e19c28cd0119e7b}

\item 
\hypertarget{group__Thread_ga6133c1b6b27d972447156db15e7c1ce7}{
\hyperlink{structrt__thread}{rt\_\-thread\_\-t} {\bfseries rt\_\-thread\_\-self} (void)}
\label{group__Thread_ga6133c1b6b27d972447156db15e7c1ce7}

\item 
\hypertarget{group__Thread_ga789a0782597b4d7f7c6c16eacc6084a8}{
\hyperlink{structrt__thread}{rt\_\-thread\_\-t} {\bfseries rt\_\-thread\_\-find} (char $\ast$name)}
\label{group__Thread_ga789a0782597b4d7f7c6c16eacc6084a8}

\item 
\hypertarget{group__Thread_ga04b743537fd099e204fc292e57b4aa5a}{
\hyperlink{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{rt\_\-err\_\-t} {\bfseries rt\_\-thread\_\-startup} (\hyperlink{structrt__thread}{rt\_\-thread\_\-t} thread)}
\label{group__Thread_ga04b743537fd099e204fc292e57b4aa5a}

\item 
\hypertarget{group__Thread_ga6d64eb4d0a485461049616808f4ce177}{
\hyperlink{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{rt\_\-err\_\-t} {\bfseries rt\_\-thread\_\-delete} (\hyperlink{structrt__thread}{rt\_\-thread\_\-t} thread)}
\label{group__Thread_ga6d64eb4d0a485461049616808f4ce177}

\item 
\hypertarget{group__Thread_ga5703a0d7351b37a1c00874a362626ea3}{
\hyperlink{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{rt\_\-err\_\-t} {\bfseries rt\_\-thread\_\-yield} (void)}
\label{group__Thread_ga5703a0d7351b37a1c00874a362626ea3}

\item 
\hypertarget{group__Thread_ga6b18459cac67e3695447e69b997fc74e}{
\hyperlink{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{rt\_\-err\_\-t} {\bfseries rt\_\-thread\_\-delay} (\hyperlink{group__BasicDef_ga66c400929925784dba020d671154978a}{rt\_\-tick\_\-t} tick)}
\label{group__Thread_ga6b18459cac67e3695447e69b997fc74e}

\item 
\hypertarget{group__Thread_gaec4d1d7bababdead1e82fa880ac1c6ea}{
\hyperlink{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{rt\_\-err\_\-t} {\bfseries rt\_\-thread\_\-control} (\hyperlink{structrt__thread}{rt\_\-thread\_\-t} thread, \hyperlink{group__BasicDef_ga585e2ad0fbab0f83817cb61373465df6}{rt\_\-uint8\_\-t} cmd, void $\ast$arg)}
\label{group__Thread_gaec4d1d7bababdead1e82fa880ac1c6ea}

\item 
\hypertarget{group__Thread_gab75228a43588dc35570bce6a2c18f3f0}{
\hyperlink{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{rt\_\-err\_\-t} {\bfseries rt\_\-thread\_\-suspend} (\hyperlink{structrt__thread}{rt\_\-thread\_\-t} thread)}
\label{group__Thread_gab75228a43588dc35570bce6a2c18f3f0}

\item 
\hypertarget{group__Thread_gab4f29aff4fec96d92f6321fa7b00c379}{
\hyperlink{group__BasicDef_ga42df42aabf676f2a89f5af2208b79950}{rt\_\-err\_\-t} {\bfseries rt\_\-thread\_\-resume} (\hyperlink{structrt__thread}{rt\_\-thread\_\-t} thread)}
\label{group__Thread_gab4f29aff4fec96d92f6321fa7b00c379}

\item 
\hypertarget{group__Thread_ga8a0288d712bd2d99d11231d4b073c5f3}{
void {\bfseries rt\_\-thread\_\-timeout} (void $\ast$parameter)}
\label{group__Thread_ga8a0288d712bd2d99d11231d4b073c5f3}

\item 
\hypertarget{group__Thread_gae0dcacf89c3d97272b185f7162a3e0c3}{
void {\bfseries rt\_\-thread\_\-idle\_\-init} (void)}
\label{group__Thread_gae0dcacf89c3d97272b185f7162a3e0c3}

\item 
\hypertarget{group__Thread_ga9c10243ac4c20396787df151ea13f4eb}{
void {\bfseries rt\_\-thread\_\-idle\_\-excute} (void)}
\label{group__Thread_ga9c10243ac4c20396787df151ea13f4eb}

\item 
\hypertarget{group__Thread_ga5aa2c0c67999e20ce8693ad3c8e624f0}{
void {\bfseries rt\_\-system\_\-scheduler\_\-init} (void)}
\label{group__Thread_ga5aa2c0c67999e20ce8693ad3c8e624f0}

\item 
\hypertarget{group__Thread_ga9aa8a561e0caf5e13126834c4f4bb681}{
void {\bfseries rt\_\-system\_\-scheduler\_\-start} (void)}
\label{group__Thread_ga9aa8a561e0caf5e13126834c4f4bb681}

\item 
\hypertarget{group__Thread_gae9f99bb5e2e2032b10ddda7a03eefe24}{
void {\bfseries rt\_\-schedule} (void)}
\label{group__Thread_gae9f99bb5e2e2032b10ddda7a03eefe24}

\item 
\hypertarget{group__Thread_gae3b532499fffe26f36b7ed8b9e3e4654}{
void {\bfseries rt\_\-schedule\_\-insert\_\-thread} (struct \hyperlink{structrt__thread}{rt\_\-thread} $\ast$thread)}
\label{group__Thread_gae3b532499fffe26f36b7ed8b9e3e4654}

\item 
\hypertarget{group__Thread_ga11893d937cb7c879abb12f8bfa4be164}{
void {\bfseries rt\_\-schedule\_\-remove\_\-thread} (struct \hyperlink{structrt__thread}{rt\_\-thread} $\ast$thread)}
\label{group__Thread_ga11893d937cb7c879abb12f8bfa4be164}

\item 
\hypertarget{group__Thread_gac4c796a7c2031213d9d2416c6e4a5b6a}{
void {\bfseries rt\_\-enter\_\-critical} (void)}
\label{group__Thread_gac4c796a7c2031213d9d2416c6e4a5b6a}

\item 
\hypertarget{group__Thread_ga35c56c2d56e2bb0f2df95abc752143df}{
void {\bfseries rt\_\-exit\_\-critical} (void)}
\label{group__Thread_ga35c56c2d56e2bb0f2df95abc752143df}

\end{DoxyCompactItemize}


\subsection{宏定义文档}
\hypertarget{group__Thread_ga85729ec69f5f51133e5d1e218f1bd504}{
\index{Thread@{Thread}!RT\_\-THREAD\_\-BLOCK@{RT\_\-THREAD\_\-BLOCK}}
\index{RT\_\-THREAD\_\-BLOCK@{RT\_\-THREAD\_\-BLOCK}!Thread@{Thread}}
\subsubsection[{RT\_\-THREAD\_\-BLOCK}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-THREAD\_\-BLOCK~RT\_\-THREAD\_\-SUSPEND}}
\label{group__Thread_ga85729ec69f5f51133e5d1e218f1bd504}
Blocked status \hypertarget{group__Thread_ga1c39773ce3aefe35d15e68f34ddedc9a}{
\index{Thread@{Thread}!RT\_\-THREAD\_\-CLOSE@{RT\_\-THREAD\_\-CLOSE}}
\index{RT\_\-THREAD\_\-CLOSE@{RT\_\-THREAD\_\-CLOSE}!Thread@{Thread}}
\subsubsection[{RT\_\-THREAD\_\-CLOSE}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-THREAD\_\-CLOSE~0x04}}
\label{group__Thread_ga1c39773ce3aefe35d15e68f34ddedc9a}
Closed status \hypertarget{group__Thread_gad59e5c8ec96f8b3231947b0c665e5fba}{
\index{Thread@{Thread}!RT\_\-THREAD\_\-CTRL\_\-CHANGE\_\-PRIORITY@{RT\_\-THREAD\_\-CTRL\_\-CHANGE\_\-PRIORITY}}
\index{RT\_\-THREAD\_\-CTRL\_\-CHANGE\_\-PRIORITY@{RT\_\-THREAD\_\-CTRL\_\-CHANGE\_\-PRIORITY}!Thread@{Thread}}
\subsubsection[{RT\_\-THREAD\_\-CTRL\_\-CHANGE\_\-PRIORITY}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-THREAD\_\-CTRL\_\-CHANGE\_\-PRIORITY~0x02}}
\label{group__Thread_gad59e5c8ec96f8b3231947b0c665e5fba}
Change thread priority. \hypertarget{group__Thread_gad875eaaa2400aef8f6078f5d1f8297b3}{
\index{Thread@{Thread}!RT\_\-THREAD\_\-CTRL\_\-CLOSE@{RT\_\-THREAD\_\-CTRL\_\-CLOSE}}
\index{RT\_\-THREAD\_\-CTRL\_\-CLOSE@{RT\_\-THREAD\_\-CTRL\_\-CLOSE}!Thread@{Thread}}
\subsubsection[{RT\_\-THREAD\_\-CTRL\_\-CLOSE}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-THREAD\_\-CTRL\_\-CLOSE~0x01}}
\label{group__Thread_gad875eaaa2400aef8f6078f5d1f8297b3}
Close thread. \hypertarget{group__Thread_ga45ba1445796c920c2ae943b419e19d4b}{
\index{Thread@{Thread}!RT\_\-THREAD\_\-CTRL\_\-INFO@{RT\_\-THREAD\_\-CTRL\_\-INFO}}
\index{RT\_\-THREAD\_\-CTRL\_\-INFO@{RT\_\-THREAD\_\-CTRL\_\-INFO}!Thread@{Thread}}
\subsubsection[{RT\_\-THREAD\_\-CTRL\_\-INFO}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-THREAD\_\-CTRL\_\-INFO~0x03}}
\label{group__Thread_ga45ba1445796c920c2ae943b419e19d4b}
Get thread information. \hypertarget{group__Thread_gae94f55354bd0e145bd855bd38db5c442}{
\index{Thread@{Thread}!RT\_\-THREAD\_\-CTRL\_\-STARTUP@{RT\_\-THREAD\_\-CTRL\_\-STARTUP}}
\index{RT\_\-THREAD\_\-CTRL\_\-STARTUP@{RT\_\-THREAD\_\-CTRL\_\-STARTUP}!Thread@{Thread}}
\subsubsection[{RT\_\-THREAD\_\-CTRL\_\-STARTUP}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-THREAD\_\-CTRL\_\-STARTUP~0x00}}
\label{group__Thread_gae94f55354bd0e145bd855bd38db5c442}
thread control command definitions Startup thread. \hypertarget{group__Thread_gae743a0f57a34ce46c0687ff787972ded}{
\index{Thread@{Thread}!RT\_\-THREAD\_\-INIT@{RT\_\-THREAD\_\-INIT}}
\index{RT\_\-THREAD\_\-INIT@{RT\_\-THREAD\_\-INIT}!Thread@{Thread}}
\subsubsection[{RT\_\-THREAD\_\-INIT}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-THREAD\_\-INIT~0x00}}
\label{group__Thread_gae743a0f57a34ce46c0687ff787972ded}
Initialized status \hypertarget{group__Thread_ga3d2482a36a666c7e796f0fee67c0d3f3}{
\index{Thread@{Thread}!RT\_\-THREAD\_\-READY@{RT\_\-THREAD\_\-READY}}
\index{RT\_\-THREAD\_\-READY@{RT\_\-THREAD\_\-READY}!Thread@{Thread}}
\subsubsection[{RT\_\-THREAD\_\-READY}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-THREAD\_\-READY~0x01}}
\label{group__Thread_ga3d2482a36a666c7e796f0fee67c0d3f3}
Ready status \hypertarget{group__Thread_ga76fc51507d2201f644b94b916560778b}{
\index{Thread@{Thread}!RT\_\-THREAD\_\-RUNNING@{RT\_\-THREAD\_\-RUNNING}}
\index{RT\_\-THREAD\_\-RUNNING@{RT\_\-THREAD\_\-RUNNING}!Thread@{Thread}}
\subsubsection[{RT\_\-THREAD\_\-RUNNING}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-THREAD\_\-RUNNING~0x03}}
\label{group__Thread_ga76fc51507d2201f644b94b916560778b}
Running status \hypertarget{group__Thread_gad67bab390563b8b80a2ee7a847660f85}{
\index{Thread@{Thread}!RT\_\-THREAD\_\-SUSPEND@{RT\_\-THREAD\_\-SUSPEND}}
\index{RT\_\-THREAD\_\-SUSPEND@{RT\_\-THREAD\_\-SUSPEND}!Thread@{Thread}}
\subsubsection[{RT\_\-THREAD\_\-SUSPEND}]{\setlength{\rightskip}{0pt plus 5cm}\#define RT\_\-THREAD\_\-SUSPEND~0x02}}
\label{group__Thread_gad67bab390563b8b80a2ee7a847660f85}
Suspend status 